home *** CD-ROM | disk | FTP | other *** search
- // Class definition for quake2.exe
-
- class RTCW
- {
- /***************************************************************
- * Begin of required properties for all GOFs.
- * The 'Display' names should never be changed on these variables.
- ***************************************************************/
- [
- Display("Host Name"),
- Description("The name of the server."),
- Default("RTCW Server"),
- AlwaysBrowserVisible,
- ]
- string sv_hostname;
-
- [
- Display("Current Players"),
- Description("The current number of players connected to the server."),
- Readonly,
- AlwaysBrowserVisible
- ]
- uint32 clients;
-
- [
- Display("Maximum Players"),
- Description("The maximum number of players allowed on the server."),
- Default("16"),
- AlwaysBrowserVisible
- ]
- uint32 sv_maxclients;
-
- [
- Display("Private Players"),
- Description("The maximum number of private clients allowed on the server."),
- Default("2")
- ]
- uint32 sv_privateClients;
-
- [
- Display("Max FPS"),
- Default("20"),
- Description("The maximum number of frames sent to the client.")
- ]
- uint32 sv_fps;
-
- [
- Display("Zombie Time"),
- Default("1"),
- Description("The maximum number of minutes before inactive players are booted.")
- ]
- uint32 sv_zombietime;
-
- [
- Display("Complaint Limit"),
- Default("3"),
- Description("Max number of player-killing complaints before booting.")
- ]
- uint32 g_complaintlimit;
-
- [
- Display("Team Force Balance"),
- Default("1"),
- Description("Max number of player-killing complaints before booting.")
- ]
- uint32 sv_teamForceBalance;
-
- [
- Display("Max Ping"),
- Default("500"),
- Description("Maximum allowable ping.")
- ]
- uint32 sv_maxPing;
-
- [
- Display("Min Ping"),
- Default("0"),
- Description("Minimum allowable ping.")
- ]
- uint32 sv_minPing;
-
- [
- Display("Hunk Megs"),
- Default("32"),
- Description("Set the amount of memory you want to reserve for game play dedicated server memory optimizations.")
- ]
- uint32 com_hunkMegs;
-
- [
- Display("Zone Megs"),
- Default("16"),
- Description("Can be adjusted to provide better performance on systems with more than 64MB of memory.")
- ]
- uint32 com_zoneMegs;
-
- [
- Display("Inactvity"),
- Default("0"),
- Description("Set the amount of time a player can remain inactive before kicked.")
- ]
- uint32 g_inactivity;
-
- [
- Display("Port"),
- Description("The UDP port the server is using."),
- Readonly,
- Default("27960") // This will be used when inserting a new server.
- ]
- uint32 port;
-
- /*
- [
- Display("Game Directory"),
- Description(
- "The directory used for additional map information. "
- "This indicates which mod the server is using."),
- Default("baseq2"),
- AlwaysBrowserVisible,
- AfterLevelChange
- ]
- string game;
- */
-
- [
- Display("Extra Parameters"),
- Description(
- "This property can be used to pass additional command-line "
- "parameters to the game server."),
- Default("")
- ]
- string extraparam; // This name should never change.
-
- [
- Display("Initial Level"),
- Description("When the server first starts it will use this level."),
- /*
- ValueMap{
- "Dunno 1", "Dunno2"
- },
- */
- Values{
- "mp_depot","mp_assault","mp_sub",
- "mp_village","mp_base","mp_assault",
- "mp_castle","mp_beach"
- },
- Default("mp_depot")
- ]
- string initlevel;
-
- [
- Display("Current Level"),
- Description("The current map the server is using."),
- AlwaysBrowserVisible,
- Readonly,
- UsesValues("initlevel")
- ]
- string mapname;
-
- [
- Display("Time Limit"),
- Description(
- "The number of minutes the server will remain on a level. "
- "If this is 0 there is no time limit."),
- AlwaysBrowserVisible,
- Default("0")
- ]
- uint32 timelimit;
-
- [
- Display("Score Limit"),
- Description(
- "When a player's score reaches this level, the server will change "
- "to the next map. If this number is 0 there is no score limit."),
- AlwaysBrowserVisible,
- Default("20")
- ]
- uint32 fraglimit;
- /***************************************************************
- * End of required properties for all GOFs.
- ***************************************************************/
-
-
- [
- Display("Game DLL Location"),
- Description(
- "The name of the folder being used by the game server for "
- "custom map information."),
- Readonly,
- ]
- string gamename;
-
- [
- Display("Version"),
- Description("The version of the RTCW server."),
- AlwaysBrowserVisible,
- Readonly,
- ]
- string version;
-
- [
- Display("RTCW Protocol"),
- Description("The RTCW protocol number the server is using."),
- Readonly,
- AlwaysBrowserVisible,
- ]
- string protocol;
-
- [
- Display("RCON Password"),
- Description(
- "The password required to use rcon."),
- Default(""),
- ]
- string rconpassword;
-
- [
- Display("Private Password"),
- Description(
- "The password required to join the server. If this is empty no "
- "password is required to join the server."),
- Default(""),
- ]
- string sv_privatePassword;
-
-
- [
- MethodVar,
- Display("Map Name"),
- Description(""),
- UsesValues("initlevel")
- ]
- string map;
-
- [
- Display("Change Current Level"),
- Description("Changes the current level."),
- ConsoleCommand("map %1")
- ]
- void ChangeLevel(MethodVar map);
-
- [
- Display("Private Clients"),
- AlwaysBrowserVisible,
- Default("0")
- ]
- uint32 sv_privateClients;
-
- [
- Display("Capture Limit"),
- AlwaysBrowserVisible,
- Default("0")
- ]
- uint32 capturelimit;
-
- [
- Display("Minimum Bots"),
- Description(
- "Indicates the minimum number of bots to allow on the server."),
- AlwaysBrowserVisible,
- Default("0")
- ]
- uint32 bot_minplayers;
-
- [
- Display("Maximum Game Clients"),
- //Description(
- // "Indicates the maximum number of clients to allow on the server."),
- AlwaysBrowserVisible,
- Default("0")
- ]
- uint32 g_maxGameClients;
-
- [
- Display("Flood Protect"),
- AlwaysBrowserVisible,
- Default("0")
- ]
- uint32 sv_floodProtect;
-
- [
- Display("Rate"),
- AlwaysBrowserVisible,
- Default("0")
- ]
- uint32 sv_maxRate;
-
- [
- Display("Game Type"),
- Description("Sets the type of the game the server will host."),
- AlwaysBrowserVisible,
- Default("5")
- ]
- uint32 g_gametype;
-
- [
- Display("Warmup Time"),
- Description(
- "Sets the amount of time in seconds that players may practice before "
- "the actual tournament match starts."),
- Default("20"),
- ]
- uint32 g_warmup;
-
- [
- Display("Allow Friendly Fire"),
- Description(
- "Determines if players can damage their own teammates."),
- Default("True"),
- ]
- boolean g_friendlyFire;
-
- [
- Display("Allow Vote"),
- Description(
- "Enable players connected to the server to call for and vote on "
- "changes including: map, map restart, kick, and g_gametype."),
- Default("True"),
- ]
- boolean g_allowvote;
-
- /***************************************************************
- * Begin of required methods for all GOFs.
- * The names of these methods should never be changed.
- ***************************************************************/
- [
- Display("Set Property"),
- Description("Sets a server property."),
- ConsoleCommand("set %1 \"%2\"")
- ]
- void SetProperty(string strVar, string strValue);
- /***************************************************************
- * End of required methods for all GOFs.
- ***************************************************************/
-
-
- /***************************************************************
- * Begin of recommended methods for all GOFs.
- * The names of these methods should never be changed.
- ***************************************************************/
- [
- Display("Kick Player from Server"),
- Description("Removes player from server."),
- ConsoleCommand("kick \"%1\"")
- ]
- void KickPlayerByName(string strID);
- /***************************************************************
- * End of recommended methods for all GOFs.
- ***************************************************************/
-
-
- [
- Display("Execute Config File"),
- Description("Executes a config file of console commands."),
- ConsoleCommand("exec %1")
- ]
- void Exec(string strMasterList);
-
- [
- Display("Status"),
- Description("Gets the status of the game server."),
- ConsoleCommand("status")
- ]
- void Status();
-
- };
-
-